#ifndef HOME_H
#define HOME_H

#include <QtGui/QWidget>
#include <QX11EmbedContainer>
#include <QObject>
#include <QResizeEvent>
#include <QDebug>
#include <QtDeclarative/QDeclarativeView>
#include <QDockWidget>

class Home : public QWidget
{
    Q_OBJECT

public:
    Home(QWidget *parent = 0);
    ~Home();
    int cp;

protected :
    void resizeEvent( QResizeEvent *);
    void moveEvent(QMoveEvent *);
    void hideEvent(QHideEvent *e);
    void showEvent ( QShowEvent * event );
    void focusInEvent(QFocusEvent *e);
    void focusOutEvent(QFocusEvent *e);
private:
    QWidget * backgroundWidget;
    QDeclarativeView * topWidget;

    void syncGeometry();
//private slots:

};

#endif // HOME_H
